class {
    emitTestEvent1() {
        this.emit('testEvent1');
    }

    emitTestEvent2() {
        this.emit('testEvent2');
    }
};

<div class="bar">
    [app-bar]
</div>